package com.example.blog.model;

import lombok.Data;

@Data
public class PageRequest {
    //当前页面,不合理的成分，后端正常不去管显示的条数
   private Integer currentPage=1;
   //每一页显示条数
   private Integer pageSize=3;
   private Integer offset;

    public Integer getOffset() {
        return (currentPage-1)*pageSize;
    }
}
